<% @page_title = " :: Editing #{@user.name}" %>

<% content_for :sidebar do %>
	<div class="little_infos">
		<div class="little_content"><%= awareness_message %></div>
		
		<div class="little_content">
			<span class="sidebar_title">Info</span>
			If you leave <i>Password</i> field and <i>Confirm Password</i> field empty, your password will not be changed.
		</div>
	</div>
<% end %>

<% form_for :user, :url => {:action => 'update', :id => @user}, :html => { :method => :put } do |f| -%>
	<p><label for="user_name">Name&nbsp;</label><br />
	<%= f.text_field :name, :class => 'text required_field' %></p>
	
	<p><label for="user_password">Password&nbsp;</label><br />
	<%= f.password_field :password, :class => 'text' %></p>
	
	<p><label for="user_password_confirmation">Confirm Password&nbsp;</label><br />
	<%= f.password_field :password_confirmation, :class => 'text' %></p>
	
	<p><label>Login:&nbsp;</label>
	<%= @user.login %></p>
	
	<p><label>Email:&nbsp;</label>
	<%= @user.email %></p>
	
	<p><label>Registered since:&nbsp;</label>
	<%= @user.created_at.to_date %></p>

	<%= submit_tag 'Save me', :disable_with => "Saving&hellip;", :class => 'buttons' %>
<% end -%>